package cn.tedu.travelsystem.scenicSpot.mapper;

import cn.tedu.travelsystem.scenicSpot.pojo.entity.ScenicSpot;
import cn.tedu.travelsystem.transport.pojo.entity.Transport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface ScenicSpotMapper {
    int insert(ScenicSpot scenicSpot);
    int deleteById(Integer spot_id);
    int update(ScenicSpot scenicSpot);
    ScenicSpot selectById(Integer spot_id);
    List<ScenicSpot> selectAll();
    List<ScenicSpot> selectByTagsAndBudget(
            @Param("tags") String tags,
            @Param("maxBudget") BigDecimal maxBudget);

}